import { Outlet, useLocation } from 'react-router-dom'

import Header from '@/layouts/Header'

function Root() {
  const location = useLocation()
  console.log('location', location.pathname)

  return (
    <>
      {location.pathname !== '/login' && <Header />}
      <Outlet />
    </>
  )
}

export default Root
